package com.guigu.ssyx.activity.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.atguigu.ssyx.model.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 优惠券领用表
 * </p>
 *
 * @author liuyang
 * @since 2025-09-28
 */
@Data
@EqualsAndHashCode(callSuper = true)
@TableName("coupon_use")
@ApiModel(value="CouponUse对象", description="优惠券领用表")
public class CouponUse extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "购物券ID")
    @TableField("coupon_id")
    private Long couponId;

    @ApiModelProperty(value = "用户ID")
    @TableField("user_id")
    private Long userId;

    @ApiModelProperty(value = "订单ID")
    @TableField("order_id")
    private Long orderId;

    @ApiModelProperty(value = "购物券状态（1：未使用 2：已使用）")
    @TableField("coupon_status")
    private Integer couponStatus;

    @ApiModelProperty(value = "获取类型（1：后台赠送；2：主动获取）")
    @TableField("get_type")
    private Integer getType;

    @ApiModelProperty(value = "获取时间")
    @TableField("get_time")
    private LocalDateTime getTime;

    @ApiModelProperty(value = "使用时间")
    @TableField("using_time")
    private LocalDateTime usingTime;

    @ApiModelProperty(value = "支付时间")
    @TableField("used_time")
    private LocalDateTime usedTime;

    @ApiModelProperty(value = "过期时间")
    @TableField("expire_time")
    private LocalDateTime expireTime;


}
